ImportlibTreeModel
Base classes
| Name | Children | Inherits |
|---|---|---|
| ColumnItemModel prettyqt.itemmodels.columnitemmodel TreeModel with columns defined by ColumnItem classes. |
|
â‹” Inheritance diagram
graph TD
2452743520["itemmodels.ImportlibTreeModel"]
3096575510["itemmodels.ColumnItemModel"]
1030521844["itemmodels.ColumnItemModelMixin"]
2751680898["builtins.object"]
2846913429["itemmodels.TreeModel"]
874904086["core.AbstractItemModel"]
3882849576["core.AbstractItemModelMixin"]
3227531497["core.ObjectMixin"]
1898060022["QtCore.QAbstractItemModel"]
3984060476["QtCore.QObject"]
37984305["Shiboken.Object"]
3096575510 --> 2452743520
1030521844 --> 3096575510
2751680898 --> 1030521844
2846913429 --> 3096575510
874904086 --> 2846913429
3882849576 --> 874904086
3227531497 --> 3882849576
2751680898 --> 3227531497
2751680898 --> 3882849576
1898060022 --> 874904086
3984060476 --> 1898060022
37984305 --> 3984060476
2751680898 --> 37984305
🛈 DocStrings
Bases: ColumnItemModel
Model showing the dependency tree of a distribution.
Source code in prettyqt/itemmodels/importlibdistributionmodel.py
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 | |
__init__(obj: metadata.Distribution | str | list[metadata.Distribution], show_root: bool = False, parent: core.QObject | None = None)
Show the requirements tree of a distribution.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
obj
|
Distribution | str | list[Distribution]
|
Distribution (or name of it). If a list of distributions is given, they will be shown as top level items. |
required |
show_root
|
bool
|
whether to show the distribution itself as the root item. |
False
|
parent
|
QObject | None
|
parent QObject |
None
|